package com.butterfly.common.exception;

import com.butterfly.common.enums.BaseErrorEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode
public class BaseExcetion extends RuntimeException {
    private Integer code;
    private String msg;
    public BaseExcetion() {
        this.code = BaseErrorEnum.BUSINESS_ERROR.getCode();
        this.msg = BaseErrorEnum.BUSINESS_ERROR.getMsg();
    }
}
